/**
 * 
 */
package com.jmcgg.freesky.common.db;

import java.sql.DriverManager;

/**
 * @author Jacky@AFSS, 2012
 *
 */
public class DBHyperSQLBean extends DBConnBean {
	private static final long serialVersionUID = 4514833140281887308L;
	public static String URL = "jdbc:hsqldb:file:sabdb";
	public static String USER = "sa";
	public static String PASSWORD = "amei";

	/* (non-Javadoc)
	 * @see afss.freesky.sab.db.DBConnBean#getConnection()
	 */
	@Override
	public void getConnection() {
		try {
			Class.forName("org.hsqldb.jdbc.JDBCDriver").newInstance();
			conn = DriverManager.getConnection(URL, USER, PASSWORD);
		} catch (java.lang.ClassNotFoundException ce) {
			logger.error("Get Connection error:", ce);
		} catch (java.sql.SQLException se) {
			logger.error("Get Connection error:", se);
		} catch (Exception e) {
			logger.error("Get Connection error:", e);
		}
	}
}
